package com.example.codegen.common;

import com.example.codegen.model.Column;
import com.example.codegen.model.Table;
import com.example.codegen.vo.GeneratedColumn;
import com.example.codegen.vo.GeneratedTable;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ObjectCopier {

    ObjectCopier INSTANCE = Mappers.getMapper(ObjectCopier.class);

    GeneratedTable toGeneratedTable(Table table);

    GeneratedColumn toGeneratedColumn(Column column);
}
